package org.dxy.domain.event.workstation;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Value;
import org.dxy.domain.event.AggregateTypeEnum;
import org.dxy.domain.event.DomainEvent;

import java.util.List;

/**
 * @description:
 * @author: dxy
 * @createTime: 2025/6/18 23:25
 */
@Value
@Builder
@AllArgsConstructor
public class WorkstationDevicesAppendedEvent implements DomainEvent {
    Long workstationId;              // 工位ID
    List<Long> appendedDeviceIds;    // 本次追加的设备ID列表
    List<Long> allDeviceIds;         // 追加后完整设备列表（可选）
    
    @Override
    public Long aggregateId() {
        return workstationId;
    }
    
    @Override
    public String aggregateType() {
        return AggregateTypeEnum.WORKSTATION.getKey();
    }
    
    @Override
    public String eventType() {
        return null;
//        return WorkstationEventTypeEnum.DEVICES_APPENDED.getKey();
    }
}